package com.wysql.ascost.model;

/**
 * @author Administrator
 */

public enum quarterlyEnum {
    /**
     *
     */
    quarterly1("第一季度", "1"), quarterly2("第二季度", "2"), quarterly3("第三季度", "3");
    // 成员变量
    private String name;
    private String index;

    // 构造方法
    private quarterlyEnum(String name, String index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法
    public static String getName(String name) {
        for (quarterlyEnum c : quarterlyEnum.values()) {
            if (name.equals(c.name)) {
                return c.index;
            }
        }
        return null;
    }

    // get set 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }
}